<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 
 <script>
$(function(){
	$("#cancel").click(reset);	
	$("#submit").click(function(){
		generateReport("#reportForm");
		});
	$.datepicker.setDefaults($.datepicker.regional['']);
	$("#fromDate").datepicker({changeMonth: true,changeYear: true, dateFormat: 'yy/mm/dd'});
});
 </script>
 <div id="errorMsg" style="font-weight:bold;color:red;font-size:14px;"></div><br>
 <form method="post" action="/" id="reportForm" onsubmit="return false;">
 <table>
   <tr>
 <td>CSV File </td>
 <td><input type="file"  name="reportFile" /></td>
 <td></td>
 </tr>
 <tr>
 <td>From Date</td>
 <td><input type="text" id="fromDate" name="fromDate"/></td>
 <td></td>
 </tr>
  
  <tr>
 <td >
 <input type="submit" id="submit" value="submit" >
 </td>
 <td><input type="button" value="Cancel"  class="cancel"  /> </td>
 <td></td>
 </tr>
 
 </table>
 
 </form>
 